package cn.hr.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * 邮件记录实体类
 */
@Entity
@Table(name="tb_emailrecord"
    ,catalog="hrm"
)

public class EmailRecord  implements java.io.Serializable {


    /**
	 * 
	 */
	private static final long serialVersionUID = 8736855348969385832L;
	// Fields    

     private Long id;
     private String title;
     private String sender;
     private String receiver;
     private String content;
     private Timestamp sendTime;


    // Constructors

    /** default constructor */
    public EmailRecord() {
    }

    
    /** full constructor */
    public EmailRecord(String title, String sender, String receiver, String content, Timestamp sendTime) {
        this.title = title;
        this.sender = sender;
        this.receiver = receiver;
        this.content = content;
        this.sendTime = sendTime;
    }

   
    // Property accessors
    @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)

    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    @Column(name="title", nullable=false, length=50)

    public String getTitle() {
        return this.title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    @Column(name="sender", nullable=false, length=50)

    public String getSender() {
        return this.sender;
    }
    
    public void setSender(String sender) {
        this.sender = sender;
    }
    
    @Column(name="receiver", nullable=false)

    public String getReceiver() {
        return this.receiver;
    }
    
    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }
    
    @Column(name="content", nullable=false, length=65535)

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    @Column(name="sendTime", nullable=false, length=0)

    public Timestamp getSendTime() {
        return this.sendTime;
    }
    
    public void setSendTime(Timestamp sendTime) {
        this.sendTime = sendTime;
    }
   








}